package com.hulk.ratel.persistence.entity

import java.util.Date
import com.baomidou.mybatisplus.annotations.TableField
import com.baomidou.mybatisplus.annotations.TableId
import com.baomidou.mybatisplus.enums.IdType
import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-08-29
 */
@TableName("t_txncode")
class TTxncode : Model<TTxncode>() {

    @TableId(value = "id", type = IdType.ID_WORKER)
    var id: Long? = null
    @TableField("txn_code")
    var txnCode: String? = null
    /**
     * 11-支付
            参考聚合支付接口规范
     */
    @TableField("txn_type")
    var txnType: String? = null
    @TableField("txn_desc")
    var txnDesc: String? = null
    /**
     * SYNC-同步
            ASYNC-异步
     */
    @TableField("circuit_type")
    var circuitType: String? = null
    /**
     * Y-启用
            N-关闭
     */
    @TableField("use_flag")
    var useFlag: String? = null
    @TableField("start_date")
    var startDate: Date? = null
    @TableField("expiry_date")
    var expiryDate: Date? = null
    @TableField("created_by")
    var createdBy: String? = null
    @TableField("created_time")
    var createdTime: Date? = null
    @TableField("audited_time")
    var auditedTime: Date? = null
    /**
     * N-未审核
            Y-已审核
            U-已修改
     */
    @TableField("audited_flag")
    var auditedFlag: String? = null
    @TableField("audited_by")
    var auditedBy: String? = null
    @TableField("updated_by")
    var updatedBy: String? = null
    @TableField("updated_time")
    var updatedTime: Date? = null
    @TableField("archived_time")
    var archivedTime: Date? = null
    /**
     * N-未归档
            Y-已归档
     */
    @TableField("archived_flag")
    var archivedFlag: String? = null
    @TableField("ori_id")
    var oriId: String? = null
    @TableField("tenant_id")
    var tenantId: String? = null
    @TableField("lock_version")
    var lockVersion: Long? = null
    var rsv1: String? = null
    var rsv2: String? = null


    override fun pkVal(): Serializable? {
        return id
    }

    override fun toString(): String {
        return "TTxncode{" +
        ", id=" + id +
        ", txnCode=" + txnCode +
        ", txnType=" + txnType +
        ", txnDesc=" + txnDesc +
        ", circuitType=" + circuitType +
        ", useFlag=" + useFlag +
        ", startDate=" + startDate +
        ", expiryDate=" + expiryDate +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", auditedTime=" + auditedTime +
        ", auditedFlag=" + auditedFlag +
        ", auditedBy=" + auditedBy +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", archivedTime=" + archivedTime +
        ", archivedFlag=" + archivedFlag +
        ", oriId=" + oriId +
        ", tenantId=" + tenantId +
        ", lockVersion=" + lockVersion +
        ", rsv1=" + rsv1 +
        ", rsv2=" + rsv2 +
        "}"
    }
}
